Fixing image size bugs caused by the use of a frame