completely removed unused repository classes. create images just after uploading them