Prevent image delay on null delay

validation for delay removed and added condition for not executing setting image delay when its null