Caching resized image so it only has to be calculated once