refact images