add new file open-image-functionality which contains common functionality