[Shopmium, barImage ios] barImage regression on iOS7 - refactoring

[TIMOB-16490] (3_2_X) iOS: barImage regression on iOS7 #5366
from PR : https://github.com/appcelerator/titanium_mobile/pull/5366