Image forensics based on reverse engineering