JBIDE-15003 CordavaSim: Implementing different way of getting captured image height/width for correct closing on Mac OS X