Avoid images from being too big
Utils and fixes