I created interface for images/thumbnail methods. Moved it to other... package. And Thumbnail class also.