Write image or video to photo albums after taken