unsupported pixels fix

Commit is derived from http://goo.gl/91KJ9