better way to get images