Fixed issue with loader not being removed on image load