Fixed method isDayOrNight() that verifies if is day, to set image depending on the is day or night. Now it´s working.