made extra space black when rendering an image that is not the same size as the frame