Binary image converter for Django