Fix incorrect sized alloca

Two spots where we allocated the native pixel size, instead of float pixel values.