Added map function to image