Added image editing functionalities