function to get images added