gallery image class more oop