Added size factor to compare two images