abstract image extension methods to image_ext.rb from plugins