add anchor for resize image