Image:pm

- add validation of jpeg extension to resize method