Fix for #27: Don't export an image that's bigger