We reorganize the code to have the image signature as an independent
class and as a function to control the manual focus.