fix permissions images