refactored admin images controller