Getting images and breaking up logic