use 2 ways to get images