fixed a bug with image processing
removed unused files