Add filtering for images formats

Signed-off-by: Ilya Nelkenbaum <ilya@nelkenbaum.com>