We do not need to do a full setup like for a real frame, just allocate a buffer and set cur_pic(_ptr).
Attach a file by drag & drop or click to upload