update image permissions to 777