tryAllocPixels returns bool, allocPixels requires success