parse file used for message, reducing img quality for size