update encrypt images