create extension based on valid img file