onclick of edit overlay image fix