FIXME tests to write
Revert 2bc1bffb29a01982196578bec40f27ffa00f8a21 (we need the refresh())
Check image dimensions before loading