Switched img tags to object