added support to generic 565 format