Jpg images validator and media category identification functionality