replace image_id_from_url() with new method save group()

It fix the fatal error with undefined method