Reduce max image size and add a 10px margin