image resize and delete