Resize the images conveniently when loading them