added begin rescue so error is not raised when an image cannot be found