Fixed drawing of edit mode with spritelayer buffering