okay, image resizing was a bad idea