Fix chmods on images.