imglayer.position = CGPoint(x: Double(size) / 2,
                                    y: Double(offset) + size/2)