implementing image pointer