clean code for loading images via juicy pixels