parser for images fix