Avoid trying to resize non-resizable images