Updated refresh controller to make sure that the picture exists.