problem when switching to scaled size mode (W key) solved, by assigning the image to the main_display instead of displaying it