[SF#895]Check image sizes and abort loading image if it's Mpx is above thumbnail_max.

This should be reflected in the Preferences on next strings change.