Fixes memory bug. We don't need images larger than 10000x10000px.