fixing translate bug on image load