psuedo code for getting array height and width in pixels