fixed some issues with images being too big