Add most methods for image resource with tests