Made the get image stuff work