Fix permissions of created pic thumbnails