Fix image size attributes