Main window: When the image area is resized, don't drop the previous image until the new one is ready

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>