Image classes are lost after lazy load is complete

Added code to preserve the classes of the image tag when replacing class "lazy" with "lazy-loaded".