fixed issue with displaying wrong images by not checking type when setting isFirstPage and isLastPage; added Em.run.scheduleOnce()