commit getImage function