adding pixel mapping to frame object