removed some console logs. checked type on preload image callback caller