image size function to insert sizes in options table for wp bugfix