Implemented onMeasure so using wrap_content will result in the view's aspect ratio matching that of the image it's displaying.