extract images to proper location and permission